using System;
using System.Collections.Generic;
using System.Text;

namespace ADEVSO.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            //ADEVSO.Util.XML.XML _xml = new ADEVSO.Util.XML.XML("E:\\Luis Fernandez\\AIS\\MSCEM\\doc\\CEM Applies.xml");
            //_xml.Load();
            //_xml.New();
            //_xml.Save();

            //ADEVSO.Util.Mail _mail = new ADEVSO.Util.Mail();
            //_mail.SmtpServer = "smtp.artinsoft.com";
            //_mail.User = "lfernandez";
            //_mail.Password = "cdsselecr";
            //_mail.From = "lfernandez@artinsoft.com";
            //_mail.To = "ADEVSO14@gmail.com";
            //_mail.Subject = "TEST MAIL";
            //_mail.Body = "<b>MAIL DE PRUEBA</b>";
            //int resp = _mail.Send();

            //String ext = ADEVSO.IO.File.GetFileExtension("D:\\Programming\\Development\\Visual Studio Projects\\VBCompanion Estimator\\BLL\bin\\ADEVSO.dll");

            if (args.Length > 0)
            {
                //ADEVSO.IO.File.Rename(args[0], @"D:\Test\MyRenamed.txt", false);
                ADEVSO.IO.Directory.Rename(args[0], @"D:\Test\MyTest");
            }
            else
            {
                //ADEVSO.IO.File.Rename(@"D:\Test\MyTestRename.txt", @"D:\Test\MyRenamed.txt", false);
                System.IO.Directory.CreateDirectory(@"D:\Test\X\XX\XXX");
                ADEVSO.IO.Directory.Rename(@"D:\Test\MyTest2", @"D:\Test\MyTest\MyTest2\MyRenamed");
            }
        }
    }
}
